package com.techsoft.Interceptor;

import com.techsoft.SQLIDRejectedException;
import com.techsoft.SQLObject;
import com.techsoft.Session;

public interface SQLIDInterceptor {

	/**
	 * @param sqlobj
	 *            sql对象
	 * @param operator
	 *            数据操作
	 * @param processed
	 *            是否已被处理
	 * @throws SQLIDRejectedException
	 */
	public void interceptSQLID(SQLObject sqlobj, Session session,
			DMLType operator, boolean processed) throws SQLIDRejectedException;

	public enum DMLType {
		query, insert, update, delete
	}

}
